package com.yaolonga.itfc.manager.core;

/**
 * @Author: yaolong
 * @CreateTime: 2024-11-12  17:50
 * @Description: 接口类型
 * @Version: 1.0
 */
public enum InterfaceType {
    eth("ethernet"),
    wifi("wifi"),
    unknown("unknown");
    public final String linuxType;

    InterfaceType(String linuxType) {
        this.linuxType = linuxType;
    }
    public static InterfaceType ofLinuxType(String linuxType){
        for (InterfaceType value : InterfaceType.values()) {
            if (value.linuxType.equals(linuxType)){
                return value;
            }
        }
        return unknown;
    }
}
